/*
 * @Author: your name
 * @Date: 2021-01-04 09:50:30
 * @LastEditTime: 2021-04-03 23:09:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \yellow-member-admin\src\router\index.js
 */
import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
const originalPush = Router.prototype.push;
Router.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err => err)
}
const router = new Router({
    routes: [{
        path: '/',
        component: () =>
            import( /* webpackChunkName: "home" */ '@/page/home'),
        meta: { title: '首页' },
    },
    {
        path: '/main',
        component: () =>
            import( /* webpackChunkName: "home" */ '@/page/main'),
        meta: { title: '详情页面' },
        children: [{
            path: 'jbqk',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '基本情况', table_name: 'ji_ben_qin_kuang' },
        },
        {
            path: 'gcgl',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '工程管理', table_name: 'gong_cheng_guan_li' },
        },
        {
            path: 'cwrz',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '财务融资', table_name: 'cai_wu_rong_zi' },
        },
        {
            path: 'zdjs',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '制度建设', table_name: 'zhi_du_jian_she' },
        },
        {
            path: 'zcgl',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '资产管理', table_name: 'zi_chan_guan_li' },
        },
        {
            path: 'zbtb',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '招标投标', table_name: 'zhao_biao_tou_biao' },
        },
        {
            path: 'dflz',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '党风廉政', table_name: 'lian_zheng_dang_feng' },
        },
        {
            path: 'ssdt',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/tow-page.vue'),
            meta: { title: '实时动态', lineText: true },
        },
        {
            path: 'three-page',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/three-page'),
            meta: { title: '三级菜单' },
        },
        {
            path: 'supervise-email',
            component: () =>
                import( /* webpackChunkName: "home" */ '@/page/main/view/supervise-email'),
            meta: { title: '监督信箱' },
        }
        ]
    },
    {
        path: '/project_code',
        component: () =>
            import( /* webpackChunkName: "home" */ '@/page/project-code'),
        meta: { title: '工程二维码-扫码' },
    },
    {
        path: '/project',
        component: () =>
            import( /* webpackChunkName: "home" */ '@/page/project'),
        meta: { title: '工程二维码-项目内' },
    },
    {
        path: '/detail',
        component: () =>
            import( /* webpackChunkName: "home" */ '@/page/detail'),
        meta: { title: '详情页面' },
    },
    {
        path: '*',
        redirect: '@/page/404.vue'
    }
    ]
});

export default router